package com.shengqin.calculate.data;

import com.shengqin.entity.Plan;
import com.shengqin.entity.Standard;
import com.shengqin.entity.SysHealthProject;
import com.shengqin.entity.TestResult;
import com.shengqin.pojo.plan.result.TestResultKey;
import lombok.Data;

import java.io.Serializable;
import java.util.*;
import java.util.concurrent.CopyOnWriteArrayList;
import java.util.concurrent.CopyOnWriteArraySet;

@Data
public class CalculateContext implements Serializable {
    private Plan plan;
    private List<TestResult> allTestResultList;
    private List<TestResult> allOldTestResultList;
    private List<TestResult> prjTestResultList;
    private List<TestResult> heightWeightTestResultList;
    private List<TestResult> oldTestResultList;
    private List<Standard> prjStandardList;
    private SysHealthProject healthProject;
    private List<TestResult> calculateResultList = new CopyOnWriteArrayList<>();
    private Set<Long> deleteOldResultIdList = new CopyOnWriteArraySet<>();

    private Map<TestResultKey,List<Standard>> standardMap;
    private Map<String,SysHealthProject> projectMap;
    private String uploadType;
}
